package org.jtao.gbsubject.service.mapper;

import org.jtao.gbsubject.domain.*;
import org.jtao.gbsubject.service.dto.TopSubjectDTO;

import org.mapstruct.*;

/**
 * Mapper for the entity TopSubject and its DTO TopSubjectDTO.
 */
@Mapper(componentModel = "spring", uses = {})
public interface TopSubjectMapper extends EntityMapper<TopSubjectDTO, TopSubject> {



    default TopSubject fromId(Long id) {
        if (id == null) {
            return null;
        }
        TopSubject topSubject = new TopSubject();
        topSubject.setId(id);
        return topSubject;
    }
}
